home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96a.txt
/
000084_icon-group-sender _Mon Apr 15 15:44:01 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1996-09-05
|
1KB
Received: by cheltenham.cs.arizona.edu; Mon, 15 Apr 1996 12:26:58 MST
Message-Id: <317260B1.7F93@tees.ac.uk>
Date: Mon, 15 Apr 1996 15:44:01 +0100
From: Hamish Lawson <H.Lawson@tees.ac.uk>
Organization: University of Teesside, School of Computing and Maths
X-Mailer: Mozilla 2.01Gold (Win95; I)
Mime-Version: 1.0
To: icon-group@cs.arizona.edu
Subject: Making a list out of a generated sequence
References: <s16ce499.081@wise.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Errors-To: icon-group-errors@cs.arizona.edu
Status: O
Is there an easy way to make a list out of a generated sequence? I tried
enclosing the generator sequence in square brackets, as below, but it
doesn't appear to work.
every write(sort([!"string"]))
Am I obliged to write a loop that appends each item of the generated
sequence to a list?:
tempList := list()
every tempList |||:= [!"string"]
every write(!sort(tempList))
If so, it would seem to me to be a curious lack of symmetry that the
language provides the ! operator to generate elements of a list, but no
corresponding convenient mechanism for collecting into a list a
generated sequence of values.
| Hamish Lawson, School of Computing and Mathematics,
| University of Teesside, Middlesbrough, Cleveland, UK, TS1 3BA
| Tel: +44 1642 212695 Fax: +44 1642 342604
| E-mail: H.Lawson@tees.ac.uk